POV-Ray : Newsgroups : povray.unofficial.patches : MP 0.6-Parser is bored?? : Re: MP 0.6-Parser is bored?? Server Time
1 Sep 2024 18:15:10 EDT (-0400)
  Re: MP 0.6-Parser is bored??  
From: Chris Huff
Date: 18 Dec 2000 16:15:00
Message: <chrishuff-689AAA.16160618122000@news.povray.org>
In article <3a3e6b93@news.povray.org>, "ian mcdonald" 
<ian### [at] hotmailcom> wrote:

> Now why, pray tell, would a parser be bored??
> It tells me my function is too long.
> 
> Is there any logical reason for this?

Yes. It is easier to write code to handle a function with a maximum 
length than a function of arbitrary length. Just programmer 
laziness...and the fact that the isosurface code is rather convoluted, 
so few people know how to fix it.
If you need a longer function, try breaking it into several #declared 
pieces.


> Off to try using arrays+macros+loops in functions..

Won't work. Well, you might be able to access array variables if the 
index is defined outside the function, but macros and loops won't work.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.